package com.yhgarden.bbs.service.impl.common;

import com.yhgarden.bbs.service.api.common.ScheduledService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;

@Service
public class ScheduledServiceImpl implements ScheduledService {


    @Autowired
    private ExecutorService executorService;

    @Override
    @Scheduled(cron = "0 0 0/1 * * ? ")
    public void updateDataStatistics() throws ExecutionException, InterruptedException {

    }
}
